package com.zzyl.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.nursing.domain.Floor;
import com.zzyl.nursing.vo.FloorVo;
import com.zzyl.nursing.vo.TreeVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 楼层Mapper接口
 */
@Mapper
public interface FloorMapper extends BaseMapper<Floor> {

    //根据状态查询楼层房间床位-树形结构
    List<TreeVo> getRoomAndBedByBedStatus(Integer status);

    //查询负责老人楼层
    List<Floor> selectAllByNur();

    //查询智能楼层
    List<FloorVo> getAllFloorsWithDevice();
}